﻿@{
    Layout = "~/Views/Shared/_SignLayout.cshtml";
    ViewBag.Title = "账户激活失败";
}

<header class="reg_header">
    <img src="~/Styles/Themes/Google/Images/logo_2x.png" /><span><a href='@Url.Action("SignIn", "Account", new { returnUrl = ViewBag.ReturnUrl })'>登录</a></span>
</header>

<div class="activate_main w80">
    <div class="account_activate">

        <div class="account_activate position_account">
            @using (Html.BeginForm("ActivateFailed", "MembershipUser", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") }))
            {

                if (@ViewBag.Message == "验证重复")
                { 
                <div class="wgt-14">
                    <img src="~/Styles/Themes/Google/Images/alert-blue.png" />
                    <span class="activateMessage">此账户已经验证。</span>
                </div>   
                }
                else if (@ViewBag.Message == "链接失效")
                {
                <div class="wgt-14">
                    <img src="~/Styles/Themes/Google/Images/alert-blue.png" />
                    <span class="activateMessage">此链接已经失效。</span>
                </div>   
                }
                else
                {
                <div class="wgt-14">
                    <img src="~/Styles/Themes/Google/Images/failed-red.PNG" />
                    <span class="activateMessage">验证失败，请点击链接发送新的激活邮件。
                        @Html.ActionLink("点击此处发送邮件", "SendEmail", "MembershipUser", new { email = ViewBag.Email, message = ViewBag.Message }, new { @class = "paddingLeft-w1" })</span>
                </div>   
                }

            }
        </div>
    </div>
</div>
